import Vue from 'vue'
import {
  NavBar,
  Form,
  Field,
  Button,
  Tabbar,
  TabbarItem,
  Icon,
  Tab,
  Tabs,
  Cell,
  List,
  PullRefresh,
  ActionSheet,
  Popup,
  Row,
  Col,
  Badge,
  Search,
  Image as VanImage,
  Divider,
  Tag,
  CellGroup,
  Dialog,
  DatetimePicker,
  Loading,
  Lazyload
} from 'vant'

Vue.use(Lazyload, {
  preLoad: 0.8, // 屏幕高度的范围百分比0-1，预加载范围
  // 图片懒加载失败显示此图片
  error: 'https://ts1.cn.mm.bing.net/th/id/R-C.d0fe3b0b13540846e10296ab9e211fe3?rik=%2bOM3kV9drtxEkA&riu=http%3a%2f%2fbpic.588ku.com%2felement_pic%2f18%2f01%2f18%2fa6b010b41a49372a31f22a0c8591727a.jpg&ehk=yx426uG7zEU5foIx2U3UfybOGsI7vAWXZHq0rFOP7RY%3d&risl=&pid=ImgRaw&r=0'
})

// 执行目标对象里的install方法并传入 Vue 类
Vue.use(Loading)
Vue.use(DatetimePicker)
Vue.use(Dialog)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(VanImage)
Vue.use(Search)
Vue.use(Badge)
Vue.use(Col)
Vue.use(Row)
Vue.use(Popup)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Button)
